import request from '@/utils/request'
const prefix = '/cecapitalexpend'
// 获取所有数据
export function queryList(data, page, size) {
  return request({
    url: `${prefix}/param/search/${page}/${size}`,
    method: 'POST',
    data
  })
}
// 查询
export function findById(id) {
  return request({
    url: `${prefix}/param/${id}`,
    method: 'GET'
  })
}
// 新增
export function addData(data) {
  return request({
    url: `${prefix}/param`,
    method: 'POST',
    data
  })
}
// 编辑
export function editData(data, id) {
  return request({
    url: `${prefix}/param/${id}`,
    method: 'PUT',
    data
  })
}
// 删除
export function delData(id) {
  return request({
    url: `${prefix}/param/${id}`,
    method: 'DELETE'
  })
}
// 启用/停用
export function changeState(data) {
  return request({
    url: `${prefix}/param/updateBlnisinactive`,
    method: 'PUT',
    data
  })
}
// hrp-字典类型表-查询全部启用的数据字典类别
export function findcanuse() {
  return request({
    url: `/global/datadictionarytype/findcanuse`,
    method: 'GET'
  })
}
